home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr51 / postalbc.zip / POSTALBC.DOC < prev   
Text File  |  1993-04-17  |  3KB  |  66 lines

  1.                                 POSTALBC
  2.  
  3.  
  4. By: David Frankenbach
  5.     DF Software Development, Inc.
  6.     PO Box 87
  7.     Forest, VA 24551-0087
  8.                10010101001010100101000011110001100010010100001001011
  9.  
  10.  
  11. Postal Bar Code Printer for the Hewlett Packard LaserJet or other printer
  12. that uses PCL4 and above. An original article by Andrew Binstock in
  13. C Gazette, Volume 5.2 was the starting point for these routines.  I have adapted
  14. the routines from C into dBASE IV 1.1. I have made several optimizations to the
  15. PCL commands used by the original article.
  16.  
  17. I have included two versions of the dBASE IV code. POSTALBC.1 is the first
  18. version of the optimized code.  POSTALBC.2 makes use of printer macros to
  19. reduce the printer I/O by a factor of 30.  You should use POSTALBC.2 unless
  20. your printing environment (shared printers) might cause macro interference
  21. with other users.
  22.  
  23. Number of characters sent to printer:
  24.  
  25.             Original   PostalBC.1   PostalBC.2
  26. 5 Digit Zip    988         742          37
  27. 9 Digit Zip   1616        1214          53
  28.  
  29.  
  30. As you can see PCL can be an very inefficient if not used to its fullest
  31. capabilities.  Sending 988 characters to print the bar code for a 5 digit
  32. zipcode is ridiculous.  Even after optimizing the PCL in POSTALBC.1 it still
  33. takes 742 characters.  Some other optimizations which aren't presented here
  34. got the count down to 480.  But when you look at the numbers when using
  35. macros there is simply no comparison.
  36.  
  37. When you are printing envelopes by the hundreds you gain a large reduction in
  38. I/O time, not to mention the calculation time.
  39.  
  40. To use the programs copy either POSTALBC.1 or POSTALBC.2 to POSTALBC.PRG.
  41. You will have to position the printer cursor prior to calling PostalBC.
  42. The barcode should start 3.875 to 4 inches from the right edge of the
  43. envelope and the bottom of the barcode should be 0.25 inches from the bottom
  44. edge.
  45.  
  46. To print the barcode use:
  47.  
  48.    do PostalBC with "24551"
  49.          or
  50.    do PostalBC with "12345-6789"
  51.  
  52.  
  53. The routines do not error check the argument, so make sure you send them
  54. a character string zip_code, with numeric digits and '-' only (sorry Canadians
  55. send me a copy of your barcode specification and maybe I can modify the
  56. routines to handle them.)
  57.  
  58. If you are using POSTALBC.2 you must initialize the printer macros by:
  59.  
  60.    do PostalBC_Init
  61.  
  62. before you issue any PostalBC calls.
  63.  
  64. The code has been tested on a Hewlett Packard LaserJet III but should work
  65. on any HP printer from the LaserJet+ and up.
  66.